#include<stdio.h>
int a[50] = {0};
int n; 
void DecomposeAndPrint(int num, int start, int index);

int main()
{
    scanf("%d", &n);

    DecomposeAndPrint(n, 1, 0);

    return 0;
}

void DecomposeAndPrint(int num, int start, int index)
{
	int i = 0;
	if(num != 0)
	{
		for(i = start; i <= num; i++)
		{
			a[index] = i;
			start = i;
			DecomposeAndPrint(num - i, start, index + 1);
		}
	}
	else
	{
		printf("%d=%d", n, a[0]);
		for(i = 0; i < index; i ++)
		{
			printf("+%d", a[i]);
		} 
		printf(";\n");
	}
}
